<!-- 组织-职位管理-标准职位体系管理页面 -->
<template>
  <ContentCard>
    <template #header>
      <PageHeaderNew :title="title" :breadCrumb="breadCrumb"> </PageHeaderNew>
    </template>
    <Management></Management>
  </ContentCard>
</template>

<script lang="ts" setup>
import Management from './Management/index.vue';
import {
  getPositionHierarchyList,
  getPositionSortList,
  GetPositionSystem,
  PutPositionSystem,
  PostPositionSystem
} from '@/apis/management/organization/baseSetting/PositionSystem/index';

const title = '标准职位库';

const breadCrumb: string[] = ['组织', '职位管理', '标准职位库'];

const router = useRouter();

const columns = reactive({ data: [] });
const data: any = reactive({ data: [] });
const tableData: any = reactive({ data: [] });

const getSortData = async () => {
  try {
    const res: any = await getPositionSortList();
    const res1: any = await getPositionHierarchyList({ page: 1, size: -1 });
    const res2: any = await GetPositionSystem();
    columns.data = res;
    data.data = res1;
    tableData.data = res2;
    return Promise.resolve(res);
  } catch (error) {
    console.log(error);
  }
};
getSortData();
</script>

<style lang="less" scoped>
.wrap {
  padding: 10px 0;
}
</style>
